package com.cy.核心编程.thead.basic.sync;

public class GetMoneyThread extends Thread{

    private Account acc;

    public GetMoneyThread(Account acc){
        this.acc = acc;//为了保证柜台和ATM用的是一个账户
    }

    @Override
    public void run() {
        acc.getMoney();
    }
}
